<template>
  <div>
    <div class="listen-panel">
      <div v-if="listenCode === 3" class="title">需明确用户意图？</div>
      <div v-if="listenCode === 4" class="title">无法判断是单人音频还是多轮对话</div>
      <div v-if="listenCode === 8" class="title">请先生成音频，再修改音频设置</div>
      <div class="sexCheck">
        <div class="submit" @click="confirm('1')">否</div>
        <div class="submit" @click="confirm('2')">是</div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const emits = defineEmits(['listenConfirm']);

const props = defineProps({
  listenCode: {
    type: Number,
  },
});

const confirm = (type: String) => {
  if (type == '1') {
    emits('listenConfirm', false);
  } else if (type == '2') {
    emits('listenConfirm', true);
  }
};
</script>
<style lang="scss" scoped>
.listen-panel {
  .title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 22px;
    text-align: left;
    font-style: normal;
  }

  .sexCheck {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  .submit {
    width: 60px;
    height: 32px;
    background: #ff8500;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    line-height: 24px;
    text-align: right;
    font-style: normal;
    margin-right: 8px;
  }
}
</style>
